<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('修改服务商申请')" />
    <th:block th:include="include :: datetimepicker-css" />
</head>
<body class="white-bg">
    <div class="wrapper wrapper-content animated fadeInRight ibox-content">
        <form class="form-horizontal m" id="form-agentInfo-edit">
            <h4 class="form-header h4" >申请服务商信息</h4>
            <div class="row">
                <div class="form-group">
                    <label class="col-sm-3 control-label">申请服务商编号：</label>
                    <div class="col-sm-8">
                        <input name="agentNum" th:value="${agentInfo.agentNum}"  readonly="readonly" class="form-control" type="text">
                    </div>
                </div>
                <div class="form-group">
                    <label class="col-sm-3 control-label">申请服务商名称：</label>
                    <div class="col-sm-8">
                        <input name="agentName" th:value="${agentInfo.agentName}" readonly="readonly" class="form-control" type="text">
                    </div>
                </div>
            </div>
            <h4 class="form-header h4" >扶持信息</h4>
            <div class="row">
                <div class="form-group">
                    <label class="col-sm-3 control-label">扶持档位：</label>
                    <div class="col-sm-8">
                        <input name="supportLevel" id="grade" onclick="gradeInfo()"  readonly="readonly" class="form-control" type="text">
                        <i class="fa fa-search" style="margin-top: -22px;margin-right:3px;float:right;"></i>
                    </div>
                </div>
            </div>
        </form>
    </div>
    <th:block th:include="include :: footer" />
    <th:block th:include="include :: utils-js" />
    <th:block th:include="include :: datetimepicker-js" />
    <script th:inline="javascript">
        var prefix = ctx + "agentInfo/agentInfo";
        var prefixRecord = ctx + "terminal/record";
        $("#form-agentInfo-edit").validate({
            focusCleanup: true
        });

        function submitHandler() {
            if ($.validate.form()) {
                $.operate.save(prefix + "/saveDemotion", $("#form-agentInfo-edit").serialize());
            }
        }
        
        
        function gradeInfo() {
                $.modal.open("选择档位", ctx + "agentInfo/agentInfo/dwOpen","1100","500");
        }

    </script>
</body>
</html>